package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lovo
 * @since 2023-07-21
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    /**
     * 修改商品库存
     * @param productId 商品ID
     * @param newStoreNum 新库存
     */
    public void updateStoreNum(@Param("productId") Integer productId,@Param("newStoreNum")Integer newStoreNum);
}
